package com.kingwang.training.designpattern.visitor.bo;

import java.util.Random;

/**
 * 产品经理
 *
 * @author King
 */
public class Manager extends Staff {
    public Manager(String name) {
        super(name);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int getProducts() {
        return new Random().nextInt(10);
    }
}
